#include<stdio.h>
int main()
{
	int a = 1, b = 0;
	int c;
	for (c = 1; c <= 10; c++)
	{
		a *= c;
		b += a;
	}
	printf("%d\n", b);
	return 0;
}